package chap6;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr2 {
    public static void main(String[] args) {
        int a[]={1,2,4,5,7,9,10};
        System.out.println(a.length);
        System.out.println(a[3]);
        int b[]=new int[]{1,4,6,10,9};
        System.out.println("b的长度是："+b.length);
        System.out.println(b[2]);
        int c[]=new int[4];
        //c={1,1,2,4};错误
    }
}
